﻿using Sdari.Example.Business.Exceptions;
using Sdari.Example.Models;

namespace Sdari.Example.Business.Database
{
    internal static class Db
    {
        private static IExampleDbContext? _pmpDb;
        public static void Init(IExampleDbContext pmpDb)
        {
            _pmpDb = pmpDb;
        }

        public static IExampleDbContext Pmp
            => _pmpDb ?? throw new DbContextNotInitializedException<IExampleDbContext>();
    }
}
